<?php
($user_id = session('user_id')) || abort('请先登录');
include_once(EC_PATH . '/includes/lib_clips.php');

($collection_id = _POST('rec_id', 0)) || abort('参数错误');

$db->query('DELETE FROM ' .$ecs->table('collect_goods'). " WHERE rec_id={$collection_id} AND user_id={$user_id}");
return [];
